<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<%@include file="../common/jscss.jsp"%>
<script type="text/javascript">
	var artOrderGrid = null;
	$(function(){
		artOrderGrid = $("#art_order_grid").ligerGrid({
				title : '购买订单',
                columns: [
                          { display: '订单编号', name: 'id',isSort : false },
                     	 { display: '当前状态', name: 'isRead',isSort : false,
       	                  render: function(record, rowindex, value, column){
       	                	  if(value){
       	                		  return "<span>已付款</span>"; 
       	                	  }else{
       	                		  return "<span>未付款</span>"; 
       	                	  }
       	                	 
       	                  }},
       	               { display: '渠道', name: 'type',isSort : false,
           	                  render: function(record, rowindex, value, column){
           	                	  if(value=='find'){
           	                		  return "<span>发现购买</span>"; 
           	                	  }else if(value=='auction'){
           	                		  return "<span>拍卖购买</span>"; 
           	                	  }
           	                	 
           	                  }},
           	    { display: '会员名', name: 'memberName',isSort : false },
	            { display: '订单标题', name: 'title',isSort : false },
	            { display: '订单成交价格', name: 'sucPrice',isSort : false },
	            { display: '订单省份', name: 'province',isSort : false },
	            { display: '订单市区', name: 'city',isSort : false },
	            { display: '订单县级', name: 'county',isSort : false },
	            { display: '订单地址', name: 'address',isSort : false },
	            { display: '订单邮编', name: 'zipcode',isSort : false },
	            { display: '收货人名', name: 'addressName',isSort : false },
	            { display: '手机', name: 'phone',isSort : false },
	            { display: '电话', name: 'telphone',isSort : false },
	            { display: '送货时间', name: 'goodTime',isSort : false },
                { display: '创建时间', name: 'gmtCreated',isSort : false,
                  render: function(record, rowindex, value, column){
                	 return (new Date(value.time)).format("yyyy年MM月dd日 hh:mm:ss");
                  }}
                
                ], 
                pageSize:30,
                root :'list',
                record:'totalRecord',
                url: "/misc/member/memberOrderListGrid.htm", 
                width: '99%',height:'99%'
            });


	});
</script>
<div id="art_order_grid" style="margin:0; padding:0 ;" ></div>
